﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Permisos.aspx.cs" Inherits="KimberlyDashboard.admin.Permisos" MasterPageFile="~/Site1.Master" Title="Supply chain dashboard" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>

    <table width="674" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td colspan="2"><img src="../images/spacer.gif" width="674" height="6" alt="" /></td>
        </tr>
        <tr class="franjaSuperior">
            <td width="438" valign="bottom">
        
            <table width="334" border="0" cellspacing="0" cellpadding="0">
              <tr bgcolor="#FFFFFF">
                <td width="34"><img src="../images/objetos_titular_01.gif" width="34" height="26" alt="" /></td>
                <td width="286" class="texto_titular01" style="padding:0px 0px 0px 12px;">Gestión de Usuarios:  </td>
                <td width="14"><img src="../images/objetos_titular_02.gif" width="15" height="26" alt="" /></td>
              </tr>
            </table>
    
            </td>
            <td width="236" class="texto_indicadorSeccion">Permisos</td>
        </tr>
        <tr class="franjaSuperior">
            <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin:10px 0px 10px 0px;">
            <tr>
                <td width="40%" class="texto_formulario">Usuario:</td>
                <td width="60%" align="left">
                    &nbsp;<asp:TextBox ID="txtUsuario" runat="server" CssClass="TextBox" MaxLength="50"
                        Width="176px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUsuario"
                        Display="None" ErrorMessage="Debe escribir el usuario con el que ingresará a la aplicación"
                        ValidationGroup="Crear"></asp:RequiredFieldValidator>
                </td>
      </tr>
      <tr>
        <td class="texto_formulario">Nombre(s):</td>
        <td align="left">
                    &nbsp;<asp:TextBox ID="txtNombre" runat="server" MaxLength="100"
                        Width="176px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtNombre"
                        Display="None" ErrorMessage="Debe escribir el nombre"
                        ValidationGroup="Crear"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td class="texto_formulario">Apellido(s):</td>
        <td align="left">
            &nbsp;<asp:TextBox ID="txtApellido" runat="server" MaxLength="100"
                Width="176px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtApellido"
                Display="None" ErrorMessage="Debe escribir el apellido"
                ValidationGroup="Crear"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td class="texto_formulario">Rol al que pertenece:</td>
        <td align="left" align="left">
                    &nbsp;<asp:DropDownList ID="drpRol" runat="server">
                        </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="drpRol"
                        Display="None" ErrorMessage="Debe seleccionar el rol"
                        ValidationGroup="Crear" InitialValue="0"></asp:RequiredFieldValidator>            
        </td>
      </tr>
    </table>
    </td>
    <td valign="bottom">
    <table align="right" width="110" border="0" cellspacing="0" cellpadding="0"  style="margin:0px 0px 10px 0px;">
      <tr valign="top">
        <td width="16" class="btn_guardar-cancelar">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
            ShowSummary="False" ValidationGroup="Crear" />
            <asp:LinkButton ID="lnkGuardar" runat="server" ValidationGroup="Crear" 
                    onclick="lnkGuardar_Click"><img src="../images/btn_aceptar.gif" alt="Guardar" width="16" height="16" border="0" /> Guardar</asp:LinkButton>            
        </td>        
      </tr>      
    </table>
    </td>
  </tr>
  <tr>
    <td colspan="2"><img src="../images/filete_divDerecha.gif" width="674" height="9" alt="" /></td>
  </tr>
  <tr>
    <td colspan="2"><img src="../images/spacer.gif" width="250" height="20" alt="" /></td>
  </tr>
  <tr>
    <td colspan="2">
    <table width="334" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="34" bgcolor="#629BCB"><img src="../images/objetos_titular_03.gif" width="34" height="26" alt="" /></td>
        <td width="286" class="texto_titular02" style=" background-color:#629BCB; padding:0px 0px 0px 12px">Usuarios Existentes:  </td>
        <td width="14"><img src="../images/objetos_titular_04.png" width="15" height="26" alt="" /></td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td colspan="2">
    <br />
                    <asp:HiddenField ID="hdnId" runat="server" Value="0" />
                    <asp:HiddenField ID="hdnIndice" runat="server" Value="0" />
                    <asp:GridView ID="grdUsuarios" runat="server" AutoGenerateColumns="False" 
                        DataKeyNames="Id" onrowdeleting="grdUsuarios_RowDeleting" 
                        onrowediting="grdUsuarios_RowEditing" CellPadding="4" ForeColor="#333333" 
                        GridLines="None" CssClass="tablaDatos">                                    
                                    <Columns>
                                        <asp:BoundField DataField="Id" HeaderText="ID" Visible="False" />
                                        <asp:BoundField DataField="Usuario" HeaderText="Usuario" HtmlEncode="False" >
                                            <ControlStyle CssClass="TextBox" />
                                            <ItemStyle HorizontalAlign="Left" />
                                        </asp:BoundField>                                    
                                        
                                        <asp:BoundField DataField="Nombre" HeaderText="Nombre" HtmlEncode="False" >
                                            <ControlStyle CssClass="TextBox" />
                                            <ItemStyle HorizontalAlign="Left" />
                                        </asp:BoundField>                                    
                                        <asp:BoundField DataField="Apellido" HeaderText="Apellido" HtmlEncode="False" >
                                            <ControlStyle CssClass="TextBox" />
                                            <ItemStyle HorizontalAlign="Left" />
                                        </asp:BoundField>                                                                            
                                        <asp:BoundField DataField="Rol" HeaderText="Rol" HtmlEncode="False" >
                                            <ControlStyle CssClass="TextBox" />
                                            <ItemStyle HorizontalAlign="Left" />
                                        </asp:BoundField>                                                                            
                                        
                                        <asp:CommandField EditImageUrl="../../images/editar.gif" HeaderText="Editar" ShowEditButton="True" ButtonType="Image" CancelImageUrl="../images/cancelar.gif" UpdateImageUrl="../images/chulo.gif" />
                                        <asp:TemplateField HeaderText="Eliminar">
                                            <ItemTemplate>
                                                <asp:ImageButton ID="ImageButton2" runat="server" CommandName="Delete" ImageUrl="../../images/eliminar.gif"
                                                    OnClientClick="return confirm('¿Esta seguro que desea eliminar este registro?');" />
                                            </ItemTemplate>
                                        </asp:TemplateField>                                        
                                    </Columns>
                    
                                    <FooterStyle />
                                    <PagerStyle />                                    
                                    <HeaderStyle CssClass="titularColumna" />                                    
                                    <RowStyle CssClass="numeral" BackColor="#FFFFFF" Font-Bold="false" />
                                    <AlternatingRowStyle CssClass="alt" BackColor="#F9F4EC" Font-Bold="false" />
                    
                    </asp:GridView>


    </td>
  </tr>
  </table>



    </div>


</asp:Content>
